package com.hotel.mapper;

import com.hotel.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface UserMapper {
    List<User> getAll();

    int addUser(User user);

    int deleteUserById(Integer id);

    int updateUser(User user);

    User selectUserById(Integer id);

    User selectUserByName(String username);
}
